package com.knowswift.security.token;

import lombok.Getter;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;


public class UserUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {
    @Getter
    private String appleId;

    public UserUsernamePasswordAuthenticationToken(Object principal, Object credentials, String appleId) {
        super(principal, credentials);
        this.appleId = appleId;
    }

    public UserUsernamePasswordAuthenticationToken(Object principal, Object credentials, String appleId, Collection<? extends GrantedAuthority> authorities) {
        super(principal, credentials, authorities);
        this.appleId = appleId;
    }
}
